Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/common/src/androidMain/kotlin/org/meshtastic/core/common/util/BuildUtils.kt 7631db63d0bdff28078438b095c0259306cb6617 (7631db63) Text, 1.61 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.common.util

Tff7b72import T7ee787android.os.Build

T8b949e/** Utility for checking build properties, such as emulator detection. */
Tff7b72actual Tff7b72object T56d364BuildUtils Tb4b4b4{
T8b949e/** Whether the app is currently running on an emulator. */
Tff7b72actual Tff7b72val Te6edf3isEmulatorTb4b4b4: Tffa657Boolean
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72=
Te6edf3BuildTb4b4b4.Te6edf3FINGERPRINTTb4b4b4.Te6edf3startsWithTb4b4b4(Ta5d6ff"Ta5d6ffgenericTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3FINGERPRINTTb4b4b4.Te6edf3startsWithTb4b4b4(Ta5d6ff"Ta5d6ffunknownTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3FINGERPRINTTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffemulatorTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3setOfTb4b4b4(Te6edf3BuildTb4b4b4.Te6edf3MODELTb4b4b4, Te6edf3BuildTb4b4b4.Te6edf3PRODUCTTb4b4b4)Tb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffgoogle_sdkTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3MODELTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffsdk_gphone64Ta5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3MODELTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffEmulatorTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3MODELTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffAndroid SDK built forTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3MANUFACTURERTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffGenymotionTa5d6ff"Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3BuildTb4b4b4.Te6edf3BRANDTb4b4b4.Te6edf3startsWithTb4b4b4(Ta5d6ff"Ta5d6ffgenericTa5d6ff"Tb4b4b4) Tff7b72&Tff7b72& Te6edf3BuildTb4b4b4.Te6edf3DEVICETb4b4b4.Te6edf3startsWithTb4b4b4(Ta5d6ff"Ta5d6ffgenericTa5d6ff"Tb4b4b4)

Tff7b72actual Tff7b72val Te6edf3sdkIntTb4b4b4: Tffa657Int
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3BuildTb4b4b4.Te6edf3VERSIONTb4b4b4.Te6edf3SDK_INT
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s